package com.bootdo.common.excelread.service.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ColumnFieldMapper {

    private Map map= new ConcurrentHashMap<>();

    private List columnNameList= new ArrayList();

    public Map getMap() {
        return map;
    }

    public ColumnFieldMapper addMap(String columnName, String fieldName){
        columnNameList.add(columnName);
        map.put(columnName,fieldName);
        return this;
    }

    public List getColumnNameList() {
        return columnNameList;
    }

    @Override
    public String toString() {
        return "ColumnFieldMapper{" +
                "map=" + map +
                ", columnNameList=" + columnNameList +
                '}';
    }
}
